package com.deploymentplan.client.user;

import com.deploymentplan.domain.user.User;
import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.ServiceDefTarget;

public interface LoginWindowService extends RemoteService{
	public static final String SERVICE_URI = "loginwindowservice";

	public static class Util {

		public static LoginWindowServiceAsync getInstance() {
			LoginWindowServiceAsync instance = (LoginWindowServiceAsync) GWT.create(LoginWindowService.class);
			ServiceDefTarget target = (ServiceDefTarget) instance;
			target.setServiceEntryPoint(GWT.getModuleBaseURL() + SERVICE_URI);
			return instance;
		}
	}

	User login(User lOBUser) throws Exception;

}
